// 医护人员相关API服务
const request = require('../utils/request');

// 医护人员登录
const login = (data) => {
  return request.post('/staff/login', data, true, false);
};

// 医护人员注册
const register = (data) => {
  return request.post('/staff/register', data, true, false);
};

// 获取医护人员信息
const getStaffInfo = () => {
  return request.get('/staff/info');
};

// 更新医护人员信息
const updateStaffInfo = (data) => {
  return request.put('/staff/info', data);
};

// 获取科室列表
const getDepartments = () => {
  return request.get('/department/list', {}, true, false);
};

module.exports = {
  login,
  register,
  getStaffInfo,
  updateStaffInfo,
  getDepartments
}; 